package com.bto.solar.work.service.biz_stage_handler;

/**
 * @author 王小波
 * @description:   订单阶段处理接口
 * @date 2023/7/31 16:45
 * 主要处理订单任务的状态翻转、关联的自动化状态创建
 *
 */
public interface StageHandler {
    default void createNewInitState(String orderId, String stageId, String taskId){};

    default void updateToWaitingApprovalState(String orderId, String stageId, String taskId){};

    default void updateToApprovalPassState(String orderId, String stageId, String taskId, String approvalType){};

    default void updateToApprovalRejectState(String orderId, String stageId, String taskId, String approvalType , Object rejectInfo){};

    default void signedState(String orderId, String stageId, String taskId) {};
    default void dataSubmit(String orderId, String stageId, String taskId , Object data){};

}
